﻿using Microsoft.Extensions.DependencyInjection;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using VIA.Domain.Repositories;
using VIA.Domain;
using VIA.RbacPassport;

namespace VIA.SiMoJi.Presentation.Services
{
    public class CustomLoginServcie : LoginService
    {
        IRepository<Role> _roleRepository;
        IUserManager _userManager;
        public CustomLoginServcie(IServiceProvider service) : base(service)
        {
            _roleRepository = service.GetRequiredService<IRepository<Role>>();
            _userManager = service.GetRequiredService<IUserManager>();
        }

        public override async Task LoginWithCardNumber(string cardNumber)
        {
            await base.LoginWithCardNumber(cardNumber);
        }
    }
}
